 var xmlHttp;  
 var requestType = "";  
 
 var callbackFunction ;
 function createXMLHttpRequest(){  
        if(window.ActiveXObject){  
               xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");  
        }else if(window.XMLHttpRequest){  
               xmlHttp = new XMLHttpRequest();  
        }  
 }  
  
  
 function startRequest(url ){  
        var url;  
        createXMLHttpRequest();  
        xmlHttp.onreadystatechange = handleStateChange;  
        xmlHttp.open("GET",url,true);  
        xmlHttp.send(null);  
        
 }  
  
 
 function SetCallBackFunction( callback )
 {
	 
	 callbackFunction = callback;
 }
  
 function handleStateChange(){  
	    if(xmlHttp.readyState == 4){  
	    	   if(xmlHttp.status == 200){  
            	   //alert( xmlHttp.responseText);
                   //alert( "handleStateChange = " + xmlHttp.responseText);
	    		     callbackFunction( xmlHttp.responseText );
                     
               }  
 } 
}  